home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
blankery
/
bserverdir
/
sources
/
clients
/
blackscreen.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-26
|
1KB
|
67 lines
;/*
sc BlackScreen.c DATA=FAR NMINC STRMERGE NOSTKCHK IGNORE=73 STRUCTUREEQUIVALENCE NOSTDIO
slink from LIB:c.o BlackScreen.o to //Clients/BlackScreen LIB LIB:sc.lib LIB:amiga.lib /lib/client.lib SC SD STRIPDEBUG NOICONS
delete blackscreen.o
quit
BlackScreen 1.2 (Client for BServer)
Copyright © 1994 Stefano Reksten of 3AM - The Three Amigos!!!
All rights reserved.
*/
#include <exec/types.h>
#include <exec/memory.h>
#include <clib/exec_protos.h>
#include <clib/intuition_protos.h>
#include <clib/graphics_protos.h>
#include "/include/client.h"
#include "/include/client_pragmas.h"
struct IntuitionBase *IntuitionBase;
struct GfxBase *GfxBase;
struct DisplayIDInformation *dinfo;
void Blank( void )
{
struct Screen *scr;
if ( scr = OpenScreenTags( NULL,
SA_Depth, 0,
SA_DisplayID, DISPLAYID( dinfo ),
TAG_END ) )
{
register struct ViewPort *vp = &(scr->ViewPort);
SpritesOff();
SetRGB4( vp, 0, 0, 0, 0 );
(void)WaitServerCommand();
CloseScreen( scr );
SpritesOn();
}
else
SendClientMsg( ACTION_FAILED );
}
void __main( char *line )
{
if ( IntuitionBase = (struct IntuitionBase *)OpenLibrary( "intuition.library", 37L ) )
{
if ( GfxBase = (struct GfxBase *)OpenLibrary( "graphics.library", 37L ) )
{
if ( dinfo = OpenCommunication() )
{
Blank();
CloseCommunication( dinfo );
}
CloseLibrary( (struct Library *)GfxBase );
}
CloseLibrary( (struct Library *)IntuitionBase );
}
}